home *** CD-ROM | disk | FTP | other *** search
- Path: solon.com!not-for-mail
- From: seebs@solutions.solon.com (Peter Seebach)
- Newsgroups: comp.lang.c
- Subject: Re: fflush and Visual C++
- Date: 17 Mar 1996 15:26:31 -0600
- Organization: Usenet Fact Police (Undercover)
- Message-ID: <4ii027$n7c@solutions.solon.com>
- References: <4idhv5$dnv@news.mhv.net> <314b173b.71056173@nntp.ix.netcom.com> <4ifuuf$fha@solutions.solon.com> <314c3a5f.145588955@nntp.ix.netcom.com>
- NNTP-Posting-Host: solutions.solon.com
-
- In article <314c3a5f.145588955@nntp.ix.netcom.com>,
- Mike Rubenstein <miker3@ix.netcom.com> wrote:
- >What's incorrect? Are you claiming that Visual C does not implement
- >fflush() correctly?
-
- No. I'm claiming that it's incorrect to say that fflush(stdin) does not
- flush input buffers. It's just also incorrect to say that it does.
-
- >And claiming that someone is wrong for saying that a function doesn't
- >do something when the language definition does not define it as doing
- >it is rather pedantic. Sure, it is true (as I point out) that
- >fflush(stdin) can do anything, but I'd not suggest using it when you
- >want to format your hard disk -- there are quite a few implementations
- >that will not do that. :-)
-
- Yes, it's quite pedantic. But it's a significant distinction; an
- implementation is allowed to do anything, including what you expect,
- when you do something wrong.
-
- -s
- --
- Peter Seebach - seebs@solon.com - Copyright 1996 Peter Seebach.
- C/Unix wizard -- C/Unix questions? Send mail for help. No, really!
- FUCK the communications decency act. Goddamned government. [literally.]
- The *other* C FAQ - http://www.solon.com/~seebs/c/c-iaq.html
-